package com.itheima.mapper;

import com.itheima.pojo.Project;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ProjectMapper {
    @Select("select * from project")
    public List<Project> getProjectList();

    public void insert(Project project);

    @Update("update project set kahuna_id=#{kahunaId} where id =#{id}")
    public void changeKahuna(Integer id,Integer kahunaId);

    @Delete("delete from project where id=#{id}")
    public void delete(Integer id);

    public List<Project> select(Project project);
}
